package com.atguigu.mock.utils;

import java.util.Random;

/**
 * Date:2021/3/16
 * Author:csw
 * Description:
 */
public class RandomNum {
    public static int getRandInt(int fromNum,int toNum){
        return fromNum + new Random().nextInt(toNum-fromNum+1);
    }
}
